package mvc;

public class Tester {

	public static void main(String[] args) {
		TicTacToeModel model = new TicTacToeDefaulModel();
		TicTacToeListener view = new TicTacToeViewConsole(model);
		model.addTicTacToeListener(view);
		
		model.setPiece(1,1, TicTacToeModel.PLAYER_X);
        model.setPiece(1,2, TicTacToeModel.PLAYER_O);
        model.setPiece(0,0, TicTacToeModel.PLAYER_X);
        model.setPiece(0,2, TicTacToeModel.PLAYER_O);
        model.setPiece(2,2, TicTacToeModel.PLAYER_X);
        
        System.out.println(model.getGewinner());
	}
}
